<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/page/inc/taglib.jsp"%>
<link rel="stylesheet" href="${pageContext.request.contextPath}/statics/ztree/css/zTreeStyle/zTreeStyle.css"
      type="text/css">
<div class="pageContent">
	<form method="post" id="form"
		action="${pageContext.request.contextPath}${requestScope.record ==null ?'/product/product/insert' :'/product/product/update' }"
		class="pageForm required-validate"
		onsubmit="return validateCallback(this, dialogAjaxDone);">
		<div class="pageFormContent" layoutH="56">
			<!-- 关闭窗口 -->
			<input type="hidden" name="callbackType" value="closeCurrent" />
			<!-- 隐藏表单 -->

			<c:if test="${requestScope.record !=null}">

				<input type="hidden" name="merchantProductTypeId"
					value="${requestScope.record.merchantProductTypeId}" />

			</c:if>
			
			<p>
					<label>商品类型名称</label> <input name="productTypeName" class="required" maxlength="50" type="text" value="${requestScope.record.productTypeName}"  />
			</p>
				
			<p>
				<label>排序</label> <input name="sorting" class="required"
					maxlength="11" type="text" value="${requestScope.record.sorting}" />
			</p>
			<p>
				<label>添加时间</label> <input name="addTime" class="date"
					maxlength="${field.size}" type="text" readonly="true"
					value="<fmt:formatDate value="${requestScope.record.addTime}" pattern="yyyy-MM-dd" />" /><a
					class="inputDateButton" href="javascript:;">选择</a>

			</p>
			
			
		</div>
		<div class="formBar">
			<ul>
				<!--<li><a class="buttonActive" href="javascript:;"><span>保存</span></a></li>-->
				<li><div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">保存</button>
						</div>
					</div></li>
				<li>
					<div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div>
				</li>
			</ul>
		</div>
	</form>
</div>
<script type="text/javascript" src="${pageContext.request.contextPath}/statics/ztree/js/jquery.ztree.core.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/statics/ztree/js/jquery.ztree.excheck.js"></script>
